﻿#ifndef EDOUBLESPINBOX_H
#define EDOUBLESPINBOX_H

#include <QDoubleSpinBox>
#include "API_BaseWidget.h"

class QWidget;
class QWheelEvent;
namespace BaseWidget
{
    /// @brief 自定义浮点数输入框
    class API_BASEWIDGET EDoubleSpinBox : public QDoubleSpinBox
    {
        Q_OBJECT
    public:
        explicit EDoubleSpinBox(QWidget* parent = nullptr);
    private:
        /// @brief 重写鼠标滚动事件
        void wheelEvent(QWheelEvent* event) override;
    };
}


#endif
